using FluentNHibernate.Mapping;
using Wikey.Entity;

namespace Wikey.Domain.Mappings
{
    public class PageContentNodesMap : ClassMap<PageContentNode> {
        public PageContentNodesMap() {
            Id(x => x.Id);
            Map(x => x.Settings).Length(1000);
            References(x => x.Page).Column("PageId");
            References(x => x.ContentNode).Column("ContentNodeId");
            Not.LazyLoad();
        }
    }
}